<!DOCTYPE html>

<html lang="en">
<head>
  <meta charset="utf-8" />
  <title>EppiStor</title>
  <link rel="stylesheet" href="/css/main.css" />
  <link rel="shortcut icon" href="/favicon.ico" />
</head>
<body>
</body>
  <h1>{% if vial_group is none %}New Vial Group{% else %}Update Vial Group {{ vial_group.name }}{% endif %}</h1>

  <form id="vial_group_form" action="/vial_group" method="POST">
    <label for="name">Name</label>
    <input id="name" type="text" name="name" value="{{ vial_group.name }}" maxlength="100"/>
    <br />

    <label for="description">Description</label>
    <textarea id="description" name="description">{{ vial_group.description }}</textarea>
    <br />

    <label for="creation_date">Date</label>
    <input id="creation_date" type="text" name="creation_date" value="{{ vial_group.creation_date }}" maxlength="100"/>
    <br />

    <label for="color">Color</label>
    <input id="color" type="text" name="color" value="{{ vial_group.color }}" maxlength="100"/>
    <br />

    {% if vial_group is none %}
    <input type="submit" value="Create" />
    {% else %}
    <input type="hidden" name="key" value="{{ vial_group.key.urlsafe() }}" />
    <input type="submit" value="Update" />
    {% endif %}
  </form>

  <a href="/">Back</a>
</html>


